package main

import (
	"time"
)

// 处理胎温胎压纪录类别 0900 定时器
func TimerBirthWarmPress0900(dbo *DBOperation, cfg *Config) {
	zLog("处理胎温胎压纪录类别定时器 TimerBirthWarmPress0900 start.....")
	processor := NewProcessor(dbo, cfg)
	// 创建定时器
	ticker := time.NewTicker(time.Second * time.Duration(cfg.MaxBirthWarmPress0900))
	for {
		select {
		case <-ticker.C:
			processor.processBirthWarmPress0900()
		}
	}
}
